import request from '@utils/request'
import config from '@/config'
import axios from 'axios'

// 添加订单
const addOrder = async (data) => {
  return request({
    url: '/order/addOrder',
    method: 'post',
    data
  })
}

// 查询订单
const findOrder = async (data) => {
  return axios.get(`${config.server.backServer}/order/findOrder?orderId=${data.orderId}&userId=${data.userId}`)
}

export { addOrder, findOrder }
